all: Base64Test \
	HttpTypesTest \
	ParamterHelperTest \
	HttpTest \
	JsonReaderTest \
	XmlReaderTest \
	UnmarshallerContextTest \
	EndpointTest \
	RegionsTest

Base64Test: Base64Test.cc
	g++ Base64Test.cc -I ../utils/ -o Base64Test

HttpTypesTest: HttpTypesTest.cc
	g++ HttpTypesTest.cc -I .. -I ../http/ -I ../utils/ \
		-I /usr/include/apr-1.0/ \
		-lcurl \
		-o HttpTypesTest

ParamterHelperTest: ParamterHelperTest.cc
	g++ ParamterHelperTest.cc -I ../utils/ -I .. \
		-I /usr/include/apr-1.0/ \
		-laprutil-1 -o ParamterHelperTest

HttpTest: HttpTest.cc
	g++ HttpTest.cc -I ../http/ -I ../utils/ -I .. \
		-I /usr/include/apr-1.0/ \
		-lcurl -lcrypto -laprutil-1 \
		-o HttpTest -g

JsonReaderTest: JsonReaderTest.cc
	g++ JsonReaderTest.cc -I ../reader/ \
		-I ../utils/ -I .. -o JsonReaderTest

XmlReaderTest: XmlReaderTest.cc
	g++ XmlReaderTest.cc -I ../reader/ \
		-I /usr/include/apr-1.0/ -laprutil-1 -lapr-1 \
		-I ../utils/ -I .. -o XmlReaderTest -g

UnmarshallerContextTest: UnmarshallerContextTest.cc
	g++ UnmarshallerContextTest.cc -I ../transform -I ../utils \
		-I /usr/include/apr-1.0/ -I../http/ -I .. -lcurl \
		-o UnmarshallerContextTest

EndpointTest: EndpointTest.cc
	g++ EndpointTest.cc -I ../regions/ -o EndpointTest

RegionsTest: RegionsTest.cc
	g++ RegionsTest.cc -I ../regions/ -I ../reader/ \
		-I /usr/include/apr-1.0/ -I .. -I ../utils/ \
		-laprutil-1 -lapr-1 -std=c++0x \
		-o RegionsTest

clean:
	rm -v *Test

#